<div id="pager1" class="pager1">
    <table id="background-image"> 
                    <thead> 
                        <tr> 
                        	<th>Pilih</th>
                            <th>Nama</th>
                            <th>Umur</th>
                            <th>Pilih Tarif</th>
                            <th>Telepon HP</th>
                            <th>Kategori</th>
                            <th>Telepon Rumah</th>
                         
                            
                        </tr> 
                    </thead> 
                    <tbody> 
                        <?php 
							$i=1;
							foreach ($barang as $barang1){
							?>                        
                        <tr>
                        	<td><a href="#" id="addScnt" data-identity='<?php echo $i;?>'>Add</a></td>
                        	<td><?php echo $barang1->name;?></td> 
                        	<td><?php echo $barang1->umur;?></td> 
                        	<td>
                            	<select id="pilihtarif<?php echo $i;?>" name="pilihtarif<?php echo $i;?>">
                                	<?php
                                    	 $code   =   explode(',',$barang1->kode);
										 $harga   =   explode(',',$barang1->harga);
										 $desc   =   explode(',',$barang1->keterangan);
										 $x=0;
										 foreach($code as $code1)
										 {?>
                                         	<?php /*$harga1brg = number_format($harga1brg, 0, '.', ',');*/?>
											<!--<option value="<?php /*echo $code[$x];?>"><?php echo $desc[$x] . ": ";echo $harga1brg;*/?></option>-->
                                            <option value="<?php echo $code1;?>"><?php echo $desc[$x] . ": ";echo $harga[$x];?></option>

											<?php  $x++;
										 }
									?>
                                	
                                </select>
                            
                            </td> 
                            <td><?php echo $barang1->telp;?></td>
                        	<td><?php echo $barang1->kategori;?> Orang</td> 
                            <td><?php echo $barang1->telprumah;?></td> 
                            <div id="a<?php echo $i;?>" style="display:none"><?php echo $barang1-gaji;?></div> 
                            <div id="kode<?php echo $i;?>" style="display:none"><?php echo $barang1->nid;?></div>
                            <div id="desc<?php echo $i;?>" style="display:none"><?php echo $barang1->name;?> - Telp: <?php echo $barang1->telp;?></div>               
                        </tr> 
                        
                        <?php $i++;} ?>
                       
                   </tbody> 
                    
				</table> 
                    <form>
                        <img src="<?php echo base_url();?>img/first.png" class="first" title="back to first"/>
                        <img src="<?php echo base_url();?>img/prev.png" class="prev" title="previous"/>
                        <input type="text" class="pagedisplay"/>
                        <img src="<?php echo base_url();?>img/next.png" class="next" title="next"/>
                        <img src="<?php echo base_url();?>img/last.png" class="last" title="go to last"/>
                       
                        <select class="pagesize">
                            <option selected="selected"  value="10">10</option>
                            <option value="15">15</option>
                            
                        </select>
                    
                    </form>
           
</div>